package com.ttc.mBackup.BackupContacts;


import com.ttc.mBackup.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.*;

public class CustomList extends LinearLayout {

	private int iconId;
	private TextView txtContactName;
	private TextView txtNumberPhone;
	private CheckBox checkbox;

	public CustomList(Context context) {
		super(context);

		// Sử dụng LayoutInflater để gán giao diện trong list.xml cho
		// class này
		LayoutInflater li = (LayoutInflater) this.getContext()
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		li.inflate(R.layout.c_backup_row, this, true);

		// Lấy các view qua id
		txtContactName = (TextView) findViewById(R.id.txtContactName);
		txtNumberPhone = (TextView) findViewById(R.id.txtNumberPhone);
		checkbox = (CheckBox) findViewById(R.id.checkbox);

	}

	public int getIconId() {
		return iconId;
	}

	public void setIconId(int iconId) {
		this.iconId = iconId;
	}

	public TextView getTxtContactName() {
		return txtContactName;
	}

	public void setTxtContactName(TextView txtContactName) {
		this.txtContactName = txtContactName;
	}

	public TextView getTxtNumberPhone() {
		return txtNumberPhone;
	}

	public void setTxtNumberPhone(TextView txtNumberPhone) {
		this.txtNumberPhone = txtNumberPhone;
	}

	public CheckBox getCheckbox() {
		return checkbox;
	}

	public void setCheckbox(CheckBox checkbox) {
		this.checkbox = checkbox;
	}

	

}
